#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QVariantMap>
#include "MapWidget/mapwidget.h"
#include "Communication/mapctrl.h"
#include "settingwidget.h"
#include "maprecordwidget.h"

namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = 0);
    ~MainWidget();

private slots:
//    void carStateChanged(bool);
    void carStart();
    void carStop();
    void sysSettings();
    void mapViewChanged(bool checked);
    void recvPropMap(QVariantMap m);

private:
    Ui::MainWidget *ui;

    MapWidget* mapWidget;//地图界面
    MapCtrl* mapCtrl;//地图控制,包含socket通信部分
    SettingWidget* winSettings;//配置界面
    MapRecordWidget* winMapRecord;
};

#endif // MAINWIDGET_H
